home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / manual-p / man_db-2.000 / man_db-2 / man_db-2.3.10 / lib / flock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-28  |  385 b   |  18 lines

  1. /* Operations for the `flock' call.  */
  2. #ifndef LOCK_SH
  3. #  define LOCK_SH       1    /* Shared lock.  */
  4. #endif
  5.  
  6. #ifndef LOCK_EX
  7. #  define LOCK_EX       2    /* Exclusive lock.  */
  8. #endif
  9.  
  10. #ifndef LOCK_UN
  11. #  define LOCK_UN       8    /* Unlock.  */
  12. #endif
  13.  
  14. /* Can be OR'd in to one of the above.  */
  15. #ifndef LOCK_NB
  16. #  define LOCK_NB       4    /* Don't block when locking.  */
  17. #endif
  18.